<?php


namespace app\blog\controller;
use think\Controller;
use think\facade\Session;

class Blog extends Controller
{
    /*登录博客*/
    public function showBlog($name){
        $this->assign("name",$name);
        return $this->fetch("index/blog");
    }

    public function showBlogDetails($name,$detailId){
        $this->assign("name",Session::get("login"))
            ->assign("name",$name)
            ->assign("details",$detailId);
        return $this->fetch("index/details");
    }

}